<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->load->view('include/html_head')?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('include/header')?>
	<?php $this->load->view('include/menu')?>
	<div id="page">
		<div id="content">
		<?php $this->load->view('include/sub_navi')?>
			<?php if (isset($show_thumb_path)):?>
			<!--幻灯开始 -->
			<style>
			.nivoSlider {
			    position:relative;
			    width:400px; /* Change this to your images width */
			    height:300px; /* Change this to your images height */
			    background:url(/images/icon/loading.gif) no-repeat 50% 50%;
			}
			</style>
			<div style='margin:58px 0 40px 70px;'>
               <div class="slider-wrapper theme-default my_theme_default">
		            <div class="ribbon"></div>
		            <div id="slider" class="nivoSlider">
		            <?php foreach ($show_thumb_path as $v):?>
	                <img src="<?php echo BASE_URL . $v?>" alt="" title="" />
	            <?php endforeach;?>
	            </div>
	        </div>
	        </div>
		    <script type="text/javascript">
		    $(window).load(function() {
		        $('#slider').nivoSlider();
		    });
		    </script>
            <!--幻灯结束 -->
            <?php endif;?>
			<div class="post">
				<?php if (!empty($news)):?>
				<p class="meta">最新活动 - Latest Activity of Our Society</p>
				<div class="entry">
					<ul>
					<?php foreach ($news as $v):?>
					   <li><span>[<?php echo date("Y/m/d", $v['create_time'])?>]</span>&nbsp;&nbsp;<a href="<?php echo SOCIETY_NEWS_DETAIL_PATH . $v['id']?>"><?php echo $v['title']?></a></li>
					<?php endforeach;?>
					</ul>
					<p class="links"><a href="<?php echo SOCIETY_NEWS_LIST_PATH . $this->uri->segment(4)?>-0" class="more">查看更多</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" class="comments">新闻总计 (<?php echo $news_count?>)</a></p>
				</div>
				<?php endif;?>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<?php $this->load->view('include/side_bar')?>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
<?php $this->load->view('include/footer_content')?>
<?php $this->load->view('include/footer')?>
</body>
</html>
